package com.zzb.framework.modules.website.controller;

import com.zzb.framework.common.BaseResponse;
import com.zzb.framework.modules.website.service.WebSiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zzb.framework.modules.website.vo.WebSiteContextVO;

@RestController
@RequestMapping("/api/website")
public class WebSiteController {
    @Autowired
    private WebSiteService webSiteService;

    @GetMapping("/context")
    public BaseResponse<WebSiteContextVO> webContext(){
        return BaseResponse.content(webSiteService.webContext());
    }
}
